﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddPrdtImages.aspx.cs" Inherits="ProductManager_AddPrdtImages" Title="无标题页" %>
<%@ Register src="../UserControls/ImageUpload.ascx" tagname="ImageUpload" tagprefix="uc1" %>

    <script type="text/javascript">
    function setMore()
    {
        var divMore=document.getElementById("divMore");
        divMore.style.display="block";
    }
    function setImage(imgFile,num)
    {
        document.getElementById("pic"+num).filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgFile.value;
    }
    </script>
<%--    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>--%>
    <span>
        <input id="hidPrdt" type="hidden" runat="server" />
        <input id="hidPrdtType" type="hidden" runat="server" />
        <asp:Label ID="lblPrdtName" runat="server" Text="商品名称"></asp:Label>
        <input id="Button1" type="button" value="上传更多" onclick="setMore()" />
    </span>
    <table>
    <tr><td style="width: 400px">
    <div id="pic1" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;" />
    </td>
    <td style="width: 400px">
    <asp:FileUpload ID="FileUpload1" runat="server" Height="26px" onchange="setImage(this,1)" />
<%--        <asp:Button ID="Button2" runat="server" Height="26px" onclick="btnUpload_Click" Text="上传" Width="68px" />--%>
    </td></tr>
        <tr><td style="width: 400px">
    <div id="pic2" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;"/>
    </td>
    <td>
    <asp:FileUpload ID="FileUpload2" runat="server" Height="26px" onchange="setImage(this,2)" />
    <%--<asp:Button ID="Button3" runat="server" Text="上传" Height="26px" onclick="btnUpload_Click" Width="68px" />--%>
        </td></tr>
           <tr><td style="width: 400px">
    <div id="pic3" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;"/>
    </td>
    <td>
    <asp:FileUpload ID="FileUpload3" runat="server" Height="26px" onchange="setImage(this,3)" />
    <%--<asp:Button ID="Button4" runat="server" Text="上传" Height="26px" onclick="btnUpload_Click" Width="68px" />--%>
     </td></tr>
     <tr><td style="width: 400px">
    <div id="pic4" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;"/>
    </td>
    <td>
    <asp:FileUpload ID="FileUpload4" runat="server" Height="26px" onchange="setImage(this,4)" />
    <%--<asp:Button ID="Button5" runat="server" Text="上传" Height="26px" onclick="btnUpload_Click" Width="68px" />--%>
     </td></tr>
     <tr><td style="width: 400px">
    <div id="pic5" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;"/>
    </td>
    <td>
    <asp:FileUpload ID="FileUpload5" runat="server" Height="26px" onchange="setImage(this,5)" />
    <%--<asp:Button ID="Button6" runat="server" Text="上传" Height="26px" onclick="btnUpload_Click" Width="68px" />--%>
     </td></tr>
    </table>
    <div id="divMore" style="display:none">
    <table id="tbMore">
    <tr><td style="width: 400px">
    <div id="pic6" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;" />
    </td>
    <td style="width: 400px">
    <asp:FileUpload ID="FileUpload6" runat="server" Height="26px" onchange="setImage(this,6)" />
        <%--<asp:Button ID="Button7" runat="server" Height="26px" onclick="btnUpload_Click" Text="上传" Width="68px" />--%>
    </td></tr>
        <tr><td style="width: 400px">
    <div id="pic7" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;"/>
    </td>
    <td>
    <asp:FileUpload ID="FileUpload7" runat="server" Height="26px" onchange="setImage(this,7)" />
    <%--<asp:Button ID="Button8" runat="server" Text="上传" Height="26px" onclick="btnUpload_Click" Width="68px" />--%>
        </td></tr>
           <tr><td style="width: 400px">
    <div id="pic8" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;"/>
    </td>
    <td>
    <asp:FileUpload ID="FileUpload8" runat="server" Height="26px" onchange="setImage(this,8)" />
    <%--<asp:Button ID="Button9" runat="server" Text="上传" Height="26px" onclick="btnUpload_Click" Width="68px" />--%>
     </td></tr>
     <tr><td style="width: 400px">
    <div id="pic9" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;"/>
    </td>
    <td>
    <asp:FileUpload ID="FileUpload9" runat="server" Height="26px" onchange="setImage(this,9)" />
    <%--<asp:Button ID="Button10" runat="server" Text="上传" Height="26px" onclick="btnUpload_Click" Width="68px" />--%>
     </td></tr>
     <tr><td style="width: 400px">
    <div id="pic10" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:400px;height:200px;"/>
    </td>
    <td>
    <asp:FileUpload ID="FileUpload10" runat="server" Height="26px" onchange="setImage(this,10)" />
     </td></tr>
    </table>
    </div>
    <p style="text-align:center"><asp:Button ID="btnUpload" runat="server" Text="上传" 
            Height="26px" onclick="btnUpload_Click" Width="68px" /></p>
<%--    </ContentTemplate>
    </asp:UpdatePanel>--%>
